package com.bd.lrb_q.controller;


import com.bd.lrb_q.entity.Title;
import com.bd.lrb_q.mapper.TitleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class TitleController {

    @Autowired(required = false)
    TitleMapper titlemapper;

    @RequestMapping("/header/select")
    public List<Title> select(){
        return titlemapper.select();
    }


}
